import request  from './request';

//首页轮播图
export function getHomeShuffling() {
  return request ({
    url: "/?s=Examples_CURD.getfirstfour"
  })
}
//首页人气新品
export function getSentimentProducts() {
  return request ({
    url: "/?s=Examples_CURD.getfiveeight"
  })
}
//首页热门线路
export function getHotLine() {
  return request ({
    url: "/?s=Examples_CURD.gethotLine"
  })
}
//搜索列表
export function search() {
  return request ({
    url: "/?s=Examples_CURD.test"
  })
}
//首页目的地
export function getDestination() {
  return request ({
    url: "/?s=Examples_CURD.getdestination"
  })
}

// 目的地左侧vtabs
export function getList() {
  return request ({
    url: "/?s=Examples_CURD.destinationInfo"
  })
}

// 根据微信ID查找产品
export function getOrder(data) {
  return request ({
    url: "/?s=Reply.getOrder",
    method:'post',
    data: data,
  })
}
// 目的地vtabs右侧数据
export function productList(data) {
  return request ({
    url: "/?s=Examples_CURD.destination",
    method:'post',
    data: data,
  })
}
// 根据ID查找产品
export function getproduct(data) {
  return request ({
    url: "/?s=Examples_CURD.get",
    method:'post',
    data: data,
  })
}
// 根据ID查找订单信息
export function commodityId(data) {
  return request ({
    url: "/?s=Reply.get",
    method:'post',
    data: data,
  })
}
// 提交订单
export function postorder(data) {
  return request ({
    url: "/?s=Reply.insertArray",
    method:'post',
    data: data,
  })
}
// 上传图片
export function uploadImg(data) {
  return request ({
    url: "/?s=Login.updateImg",
    method:'post',
    data: data,
  })
}
//用户信息
export function userInfo(data) {
  return request ({
    url: "/?s=Login.getLL",
    method:'post',
    data: data,
  })
}
//修改手机号
export function updatePhone(data) {
  return request ({
    url: "/?s=Login.updatePhone",
    method:'post',
    data: data,
  })
}
//修改昵称
export function updateName(data) {
  return request ({
    url: "/?s=Login.updateName",
    method:'post',
    data: data,
  })
}
//修改性别
export function updateGender(data) {
  return request ({
    url: "/?s=Login.updateGender",
    method:'post',
    data: data,
  })
}
